<?php

require_once "add_table.php";

class add{
	
	function a($arr){
		$obj = new add_table;
		$link = $obj->conn();
		
		
		
		$re = $obj->add($link,"pay_wx_online",$arr);
		return $re;
	}
	
	
}



$objAdd = new add;
$arr['out_trade_no'] = "333---out_trade_no";
$arr['attach'] = 'attach';
$arr['total_fee'] = 'total_fee';
$arr['trade_type'] = "JSAPI";
$arr['openid'] = 'openid';
$arr['time_int'] = time();
$re = $objAdd->a($arr);
var_dump($re);


//$obj = new add_table;
//$link = $obj->conn();
//
//$arr['out_trade_no'] = "out_trade_no";
//$arr['attach'] = 'attach';
//$arr['total_fee'] = 'total_fee';
//$arr['trade_type'] = "JSAPI";
//$arr['openid'] = 'openid';
//$arr['time_int'] = time();
//
//$re = $obj->add($link,"pay_wx_online",$arr);
//
//var_dump($re);
?>